//
//  AYSPlayDataModel.m
//  AiYingShiProject
//
//  Created by lanou on 15/10/28.
//  Copyright (c) 2015年 李晓理. All rights reserved.
//

#import "AYSPlayDataModel.h"

@implementation AYSPlayDataModel

- (void)setValue:(id)value forKey:(NSString *)key
{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"id"])
    {
        self.programID = value;
    }
    
}

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.area forKey:@"area"];
    [aCoder encodeObject:self.craw forKey:@"craw"];
    [aCoder encodeObject:self.director forKey:@"director"];
    [aCoder encodeObject:self.programname forKey:@"programname"];
    [aCoder encodeObject:self.programedesc forKey:@"programedesc"];
    [aCoder encodeObject:self.videotype forKey:@"videotype"];
    [aCoder encodeObject:self.vthumburl forKey:@"vthumburl"];
    [aCoder encodeObject:self.year forKey:@"year"];
    [aCoder encodeObject:self.episode forKey:@"episode"];
    [aCoder encodeObject:self.programID forKey:@"id"];
}

- (id)initWithCoder:(NSCoder *)aDecoder
{
    self = [super init];
    if (self)
    {
        self.area = [aDecoder decodeObjectForKey:@"area"];
        self.craw = [aDecoder decodeObjectForKey:@"craw"];
        self.director = [aDecoder decodeObjectForKey:@"director"];
        self.programname = [aDecoder decodeObjectForKey:@"programname"];
        self.programedesc = [aDecoder decodeObjectForKey:@"programedesc"];
        self.videotype = [aDecoder decodeObjectForKey:@"videotype"];
        self.vthumburl = [aDecoder decodeObjectForKey:@"vthumburl"];
        self.year = [aDecoder decodeObjectForKey:@"year"];
        self.episode = [aDecoder decodeObjectForKey:@"episode"];
        self.programID = [aDecoder decodeObjectForKey:@"id"];
        
    }
    return self;
}
@end
